#include <string.h>

size_t strspn( const char * string, const char * control ) {
  register size_t count = 0;
  register char ch ;
  while( ch = *string ) {
    if( strchr( control, ch ) )
    { count++ ; }
    else
    { break ; }
    string++ ;
  }
  return count ;
}
